//
//  AddressList_TCell.swift
//  MikerShop
//
//  Created by eme on 2016/12/28.
//  Copyright © 2016年 eme. All rights reserved.
//

/*
 owner:cy
 update:2016年12月28日09:41:13
 info: 选择地址的cell
 VC :  AddressList_Vc
 */
import UIKit
import RickonCore

class AddressList_TCell: UITableViewCell {
    
    @IBOutlet weak var cellphone_Lb: UILabel!
    
    @IBOutlet weak var address_Lb: UILabel!
    
    @IBOutlet weak var recipients_Lb: UILabel!
    
    @IBOutlet weak var state_ImgV: UIImageView!
    // flag(0-是默认，1-否)
    @IBOutlet weak var flag_Lb: UILabel!
    
    @IBOutlet weak var seperateLine_V: UIView!
    
    var item :AddressModel?{
        didSet{
            if let item = self.item {
                self.cellphone_Lb.text = item.cellphone
                self.recipients_Lb.text = item.recipients
                self.address_Lb.text = "\(item.province)\(item.city)\(item.area)\(item.adress)"
                if item.flag == "0" {
                    self.flag_Lb.isHidden = false
                }else{
                    self.flag_Lb.isHidden = true
                }
            }
        }
    }
    override func awakeFromNib() {
        self.seperateLine_V.backgroundColor = Theme.v.separate_Line
        
    }
}
